package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
@Data
@ApiModel(value = "供应商")
@TableName(value = "cms_supplier")
@Table(name = "cms_supplier", comment = "供应商")
public class CmsSupplier implements Serializable {
    /**
     * 供应商ID
     */
    @TableId
    @ApiModelProperty(value = "供应商ID")
    @Column(type= MySqlTypeConstant.BIGINT, comment = "供应商ID", length = 11, isKey = true, isAutoIncrement = true,isNull = false)
    private Long supplierId;

    /**
     * 供应商名称
     */
    @ApiModelProperty(value = "供应商名称")
    @Column(comment = "供应商名称")
    private String supplierName;

    /**
     * 供应商介绍
     */
    @ApiModelProperty(value = "供应商介绍")
    @Column(comment = "供应商介绍")
    private String supplierIntroduce;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @Column(comment = "创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @Column(comment = "创建时间", type = MySqlTypeConstant.DATETIME)
    private Date createTime;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    @Column(comment = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @Column(comment = "修改时间", type = MySqlTypeConstant.TIMESTAMP)
    private Date updateTime;

    /**
     * 状态（-1:删除,1:正常）
     */
    @Column(comment = "删除标志（-1:删除,1:正常）", defaultValue = "1")
    private Integer status;

    private static final long serialVersionUID = 1L;

}